package groupon.aaaa;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

@Entity
@Table(name = "group_on_use11111r", uniqueConstraints = {
		@UniqueConstraint(columnNames = "username")})
public class User2212 implements Serializable {
		private static final long serialVersionUID = 1L;
	
		@Id
		@GeneratedValue(strategy = GenerationType.IDENTITY)
		@Column(name = "id", unique = true, nullable = false)
		private int id;
		@Column(name = "username", unique = true, nullable = false)
		private String username;
		@Column(name = "password", nullable = false)
		private String password;
		@Column(name = "isDelete", nullable = false)
		private boolean isDelete;
		@Column(name = "isActive", nullable = false)
		private boolean isActive;
		@Column(name = "role", nullable = false)
		private String role;
		@Column(name = "create_date", nullable = false)
		private Date created_date;
		@Column(name = "modify_date", nullable = false)
		private Date modify_date;
		@Column(name = "email", nullable = false)
		private String email;
		@Column(name = "firstName", nullable = false)
		private String firstName;
		@Column(name = "lastName", nullable = false)
		private String lastName;
		@Column(name = "lastLogin")
		private Date lastLogin;
		
		public int getId() {
			return id;
		}
		public void setId(int id) {
			this.id = id;
		}
		
		public String getUsername() {
			return username;
		}
		public void setUsername(String username) {
			this.username = username;
		}
		
		public String getPassword() {
			return password;
		}
		public void setPassword(String password) {
			this.password = password;
		}
		
		public boolean isDelete() {
			return isDelete;
		}
		public void setDelete(boolean isDelete) {
			this.isDelete = isDelete;
		}
		
		public boolean isActive() {
			return isActive;
		}
		public void setActive(boolean isActive) {
			this.isActive = isActive;
		}
	
		public String getRole() {
			return role;
		}
		public void setRole(String role) {
			this.role = role;
		}
	
		public Date getCreated_date() {
			return created_date;
		}
		public void setCreated_date(Date created_date) {
			this.created_date = created_date;
		}
	
		public Date getModify_date() {
			return modify_date;
		}
		public void setModify_date(Date modify_date) {
			this.modify_date = modify_date;
		}
	
		public String getEmail() {
			return email;
		}
		public void setEmail(String email) {
			this.email = email;
		}
	
		public String getFirstName() {
			return firstName;
		}
		public void setFirstName(String firstName) {
			this.firstName = firstName;
		}
	
		public String getLastName() {
			return lastName;
		}
		public void setLastName(String lastName) {
			this.lastName = lastName;
		}

		public Date getLastLogin() {
			return lastLogin;
		}
		public void setLastLogin(Date lastLogin) {
			this.lastLogin = lastLogin;
		}
}
